<template>
	<view class="content">
		<!-- <view ><web-view :src="websrc"></web-view></view> -->
	</view>
</template>

<script>
	const plugin = uni.requireNativePlugin('Pdf-Plugin')
	export default {
		data() {
			return {
				websrc: '',
				appUrl:'/hybrid/html/readPdf/index/index.html',
				pdfUrl:'https://pinshushu.zyrkeji.cn/uploads/20230406170306d8cf55905.pdf',
				url:'https://x-bjp.oss-cn-beijing.aliyuncs.com/pdf/2023-04-28/20.pdf',
				link:'http://liu.goodday15.top/pdf/20.pdf',
				title:"预览合同",
			}
		},
		onLoad() {
			let that = this
			plugin.showPdf({
				title:"合同",
				url:that.link,
				maxScale:"20",
				waterMark:"这是水印",
			})
		},
	}
</script>

<style>
</style>
